package com.eipc;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

import com.eipc.util.DBHelper;

public class SendMessageActivity2 extends CommonTabActivity {
	private int type;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.import_notice);
        type = getIntent().getIntExtra("type", DBHelper.APP_TYPE_IMPORT_NOTICE);
        initView();
	}
    
    protected void initView(){
    	super.initView();
    	mBar.setMiddleText(R.string.send_message);
    	mTabHost = getTabHost();
    	mTabHost.setFadingEdgeLength(10);
    	Intent i = new Intent(this,SendActivity.class);
    	i.putExtra("type", type);
    	if(mPerson!=null) i.putExtra("leader", mPerson.isLeader);
    	mTabHost.addTab(mTabHost.newTabSpec("tab1")
    					.setIndicator(buildLabel(R.string.import_notice_send))
    					.setContent(i));
    }
    
    private TabHost mTabHost;
}
